package com.heeexy.example.service.impl;

import com.alibaba.fastjson.JSONObject;
import com.heeexy.example.dao.DataDao;
import com.heeexy.example.service.DataService;
import com.heeexy.example.util.CommonUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Service
public class DataServiceImpl implements DataService{


    @Autowired
    private DataDao dataDao;

    @Override
    public JSONObject listData() {
        List<JSONObject> list = dataDao.listData();
        return CommonUtil.successPage(list);
    }
}
